//
//  BaseModel.m
//  UI_23_QQ_音乐界面
//
//  Created by li cheng on 16/8/15.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel
- (instancetype)initWithDictionary:(NSDictionary *)dictionary{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (__kindof BaseModel *)modelWithDictionary:(NSDictionary *)dictionary{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(nonnull NSString *)key{
    
}

- (id)valueForKey:(NSString *)key{
    return nil;
}
@end
